package cn.vic.db.sql;

import cn.vic.config.model.DatabaseElement;
import cn.vic.model.TableUpdateModel;

/**
 * Created by vic on 2017/8/25.
 */
public class OracleSqlFormat extends BaseSqlFormat implements BaseSqlInterface {
    private DatabaseElement databaseElement;

    public OracleSqlFormat(DatabaseElement databaseElement) {
        this.databaseElement = databaseElement;
    }

    @Override
    public String getUpdateRemarksSql(TableUpdateModel updateModel) {
        String sql = "COMMENT ON COLUMN \"%s\".\"%s\".\"%s\" IS '%s';";
        return String.format(sql, updateModel.getLibName(), updateModel.getTableName(), updateModel.getColumnName(), updateModel.getColumnValue());
    }
}
